package com.yuanchu.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanchu.common.utils.PageResult;
import com.yuanchu.store.dto.StoreSettingParamsDto;
import com.yuanchu.store.dto.EditStoreSettingDto;
import com.yuanchu.store.entity.YoshopExpressEntity;
import com.yuanchu.store.entity.YoshopStoreSettingEntity;

import java.util.List;
import java.util.Map;

/**
 * 商家设置记录表
 *
 * @author adan
 * @email 2028038953@gmail.com
 * @date 2023-12-19 20:57:22
 */
public interface YoshopStoreSettingService extends IService<YoshopStoreSettingEntity> {



    /**
     * 查询商家设置记录表
     */
    Map<String, Object> queryData();

    /**
     * 查询商家默认积分设置
     */
    YoshopStoreSettingEntity queryPointData();

    /**
     * 查询商家设置记录表
     */
    EditStoreSettingDto.StoreSettingForm queryStoreSettingDetail(String key, int storeId);

    /**
     * 更新商家设置记录表
     */
    boolean updateStoreSetting(EditStoreSettingDto params, int storeId);

    /**
     * 查询物流接口
     */
    List<YoshopExpressEntity> queryExpressAll(Integer storeId);

    /**
     * 修改商家设置信息
     * @param param
     * @return
     */
    void storeSettingInfo(StoreSettingParamsDto param);

    /**
     * 查询商家设置信息
     * @param key
     * @return
     */
    StoreSettingParamsDto.SettingForm queryStoreSettingDetail(String key);

    /**
     * 查询物流接口
     *
     * @param page
     * @param search
     * @return
     */
    PageResult<YoshopExpressEntity> queryExpressList(Integer page, String search);
}

